package com.example.mycarcalling.service;

import com.example.mycarcalling.bean.Navigation;
import com.example.mycarcalling.bean.Order;

import java.util.List;

public interface OrderService {

    Long sendingOrder(Order order);

    Order getSendingOrder(Long navigationId);

    Order getOnDrivingOrder(Long userid);

    List<Order> getCompeteOrders(Long userid);

    //修改Navigation的状态为1，再修改Order的状态为1，返回Navigation
    Order OrderConfirm(Long NavigationId,Long driverId);

    Long pickUpStatus(Long orderId);

    Long getOffStatus(Long orderId);

    Order getReadyCompeteOrder(Long orderId);

}
